#!/usr/bin/env python
"""
# 运行命令
python manage.py runserver
python manage.py runserver 0.0.0.0:8001
python manage.py runserver_plus 0.0.0.0:8008 --cert-file cert.crt --key cert.key

# 创建迁移文件
python manage.py makemigrations
# 执行迁移，更新数据库
python manage.py migrate
# 重构
pyinstaller manage.spec
# 打包文件
pyinstaller -D manage.py
# 运行打包后文件
manage runserver 0.0.0.0:8008 --noreload
daphne -b 0.0.0.0 -p 8008 icu_project.asgi:application
"""
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
    """Run administrative tasks."""
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'basal_adjust.settings')
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        ) from exc
    execute_from_command_line(sys.argv)


if __name__ == '__main__':
    from django.core.management.commands.runserver import Command as Runserver
    Runserver.default_port = '8001'  # 修改默认端口
    main()
